#ifndef _MES_TANK_STORAGE_3_MODEL_H
#define _MES_TANK_STORAGE_3_MODEL_H
#include "atomic.h"

class MES_tank_storage_3_model : public Atomic
{
public:
	MES_tank_storage_3_model( const string & name = "MES_tank_storage_3_model" );
	inline string className() const
	{
		return "MES_tank_storage_3_model" ;
	}

protected:
	Model &initFunction();
	Model &externalFunction(const ExternalMessage &);
	Model &internalFunction(const InternalMessage &);
	Model &outputFunction(const InternalMessage &);

private:
	const Port &MES_tank_3_stream_LNA_1;
	float MES_tank_3_stream_LNA_1_flowrate;
	const Port &MES_tank_3_stream_LNA_out;
	float MES_tank_3_stream_LNA_out_flowrate;

	Port &MES_tank_3_stream_LNA_inv;
	float MES_tank_3_stream_LNA_inv_val;
	Port &MES_tank_3_stream_LNA_2;
	float MES_tank_3_stream_LNA_2_flowrate;



	Time delay;
	float total_flowrate;
	int count;
};

#endif
